#!/bin/sh
#
# Author ： hbaolong@vip.qq.com
#
# Function : 删除中文，或者英文
#
#
#

if [ $# -ne 1 ]; then
	echo "Usage: $0 filename"
	exit
fi

if [ ! -e $1 ]; then
	echo "文件不存在"
	exit -1
fi

while IFS= read -r line; 
do

	echo "$line"
	havechinese $line

	if [ $? -eq 0 ]; then
		echo $line >>$1.c.md
	else
		echo $line >> $1.e.md
	fi

done < $1

